package controller.student;

import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.stage.Stage;
import sample.student.StudentClassTable;
import sample.student.StudentGrade;

public class StudentController {
    @FXML
    private Label stu_main_lbl_sid;
    @FXML
    private Button stu_main_btn_myclasstable;
    @FXML
    private Button stu_main_btn_myscore;
    @FXML
    private Button stu_main_exit;
    public void myclasstable(){
        new StudentClassTable(stu_main_lbl_sid.getText()).start(new Stage());
    }
    public void exit(){
        Stage stage = (Stage) stu_main_exit.getScene().getWindow();
        stage.close();
    }
    public  void mygrade() throws Exception {
        new StudentGrade(stu_main_lbl_sid.getText()).start(new Stage());
    }

}
